import request from '@/utils/request'
export function listAllChannel(query) {
  return request({
    url: '/biz/bizChannel/listAll',
    method: 'get',
    params: query
  })
}
// 查询渠道管理列表
export function listBizChannel(query) {
  return request({
    url: '/biz/bizChannel/list',
    method: 'get',
    params: query
  })
}

// 查询渠道管理详细
export function getBizChannel(id) {
  return request({
    url: '/biz/bizChannel/' + id,
    method: 'get'
  })
}

// 新增渠道管理
export function addBizChannel(data) {
  return request({
    url: '/biz/bizChannel',
    method: 'post',
    data: data
  })
}

// 修改渠道管理
export function updateBizChannel(data) {
  return request({
    url: '/biz/bizChannel',
    method: 'put',
    data: data
  })
}

// 删除渠道管理
export function delBizChannel(id) {
  return request({
    url: '/biz/bizChannel/' + id,
    method: 'delete'
  })
}
